"use client";
import { CashbackTypes, Rule } from "@/api/cashback";
import Table, { TableHeaderItem } from "@/components/Table";
import { useTranslations } from "next-intl";
import { JSX } from "react";
import styles from "./components/style.module.scss";
interface Props {
cashbackInfo: CashbackTypes;
}
const Page = (props: Props) => {
const { cashbackInfo } = props;
const t = useTranslations("cashback");
const columns: TableHeaderItem[] = [
{
title:
VIP
,
dataIndex: "level",
align: "center",
width: "20%",
render: (item: Rule) => {item.level}
,
},
{
title: APOSTA
,
dataIndex: "aposta",
align: "center",
width: "40%",
render: (item: Rule) => (
{item.aposta} + BRL
),
},
{
title: (
CASHBACK
) as JSX.Element,
dataIndex: "cashback",
align: "center",
render: (item: Rule) => (
{item.cashback}%
),
},
];
const loadMore = async () => {
return Promise.resolve();
};
return (
<>
{/**/}
{/* {t("cashbackStatus")}
*/}
{/* */}
{/**/}
>
);
};
export default Page;